import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/adminapi/crewjob/list',
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  //修改
  return request({
    url: '/adminapi/crewjob/update',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/user/delete',
    method: 'post',
    data,
  })
}
export function getbaoList(params) {
  return request({
    url: '/adminapi/actjobapply/listbyjobid',
    method: 'get',
    params,
  })
}
export function getlingduiList(params) {
  return request({
    url: '/adminapi/starteamleader/getleaderbyjobid',
    method: 'get',
    params,
  })
}
export function serach(data) {
  //搜索剧组
  return request({
    url: '/adminapi/crew/fuzzysearch',
    method: 'POST',
    data,
  })
}
export function doAdd(data) {
  //添加
  return request({
    url: '/adminapi/crewjob/save',
    method: 'POST',
    data,
  })
}

export function starareacrewjob(params) {
  //选择区域
  return request({
    url: '/adminapi/starareacrewjob/list',
    method: 'get',
    params,
    headers: { 'content-type': 'application/x-www-form-urlencoded' }, //请求头
  })
}
export function serachtwo(params) {
  //选择区域
  return request({
    url: '/adminapi/starteamleader/keyforinfo',
    method: 'get',
    params,
    headers: { 'content-type': 'application/x-www-form-urlencoded' }, //请求头
  })
}
export function agerange(params) {
  //选择区域
  return request({
    url: '/mobile/agerange/list',
    method: 'get',
    params,
    headers: { 'content-type': 'multipart/form-data' }, //请求头
  })
}
export function check(data) {
  //修改身份认证
  return request({
    url: '/adminapi/crewjob/check',
    method: 'POST',
    data,
  })
}
export function genggai(data) {
  //停用
  return request({
    url: '/adminapi/crewjob/jobout',
    method: 'POST',
    data,
  })
}
export function leader(params) {
  //根据领队名称条件
  return request({
    url: '/adminapi/starteamleader/leadertojobid',
    method: 'GET',
    params,
    headers: { 'content-type': 'application/x-www-form-urlencoded' }, //请求头
  })
}
export function checktwo(data) {
  //报名管理的审核
  return request({
    url: '/adminapi/actjobapply/admincheck',
    method: 'POST',
    data,
  })
}
export function checkrecruit(data) {
  //领队管理的审核
  return request({
    url: '/adminapi/crewjob/checkrecruit',
    method: 'POST',
    data,
  })
}
export function jilu(data) {
  //导出记录
  return request({
    url: '/adminapi/exportRecord/save',
    method: 'POST',
    data,
  })
}
